package com.weic.listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class MyListener implements HttpSessionListener {
    public static int online = 0;
    public void sessionCreated(HttpSessionEvent se) {
        online++;
    }

    public void sessionDestroyed(HttpSessionEvent se) {
        online--;
    }
}
